/**
 * 
 */
package com.zzgele.qmzb.api.utils;

import com.cnc.cloudv.common.utils.CloudvTokenUtil;
import com.zzgele.qmzb.api.core.Constants;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Martin
 * 
 */
public  class CloudTvUtil {


 static 	public Map<String, String> initParamMap() {
		Long timeStamp = CloudvTokenUtil.getTimeStamp();
		String token = CloudvTokenUtil.getToken(Constants.CLOUD_tv_APPSECRET, Constants.CLOUD_TV_APPID, timeStamp);
		Map<String, String> paramMap = new HashMap<String, String>();
		paramMap.put("userId", Constants.CLOUD_TV_APPID);
		paramMap.put("timeStamp", timeStamp.toString());
		paramMap.put("token", token);
		return paramMap;
	}


}
